
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="models.dao.DanhMucDAO, model.pojo.DanhMucPOJO, java.util.ArrayList" %>

<%
      Object obj = request.getAttribute("DanhSachDanhMuc");
      if (obj == null) {
         String url = "/DanhMucSachController";
         
         RequestDispatcher rd = this.getServletContext().getRequestDispatcher(url);
         rd.forward(request, response);
      }
%>
<ul>
        <%
                  obj = request.getAttribute("DanhSachDanhMuc");
                  ArrayList<DanhMucPOJO> ds = (ArrayList<DanhMucPOJO>) obj;
                  for (DanhMucPOJO danhMuc : ds){%>
    
            
            <li>
                <a href="" target ="_self">
                        <%=danhMuc.getTenDanhMuc()%>
                </a>
                  
            </li>
          <%}%>
           
</ul>